export default {
    install(Vue){
        Promise.prototype.done = function (onFulfilled, onRejected) {
            this
              .then(onFulfilled, onRejected)
              .catch(function (reason) {
                // 抛出一个全局错误
                // setTimeout(() => {
                //   throw reason
                // }, 0)
              })
        }
    }
}